package cn.com.greatwall.search.service;

import java.io.IOException;

import com.fasterxml.jackson.databind.JsonNode;

import cn.com.greatwall.common.model.PageResult;
import cn.com.greatwall.search.model.SearchDto;

/**
 * @Author herw
 * @Time 2022-02-22 12:05:22
 * @Version 1.0
 * @Description: TODO(用一句话描述该文件做什么)
 */
public interface ISearchService {
    /**
     * StringQuery通用搜索
     * @param indexName 索引名
     * @param searchDto 搜索Dto
     * @return
     * @throws IOException
     */
    PageResult<JsonNode> strQuery(String indexName, SearchDto searchDto) throws IOException;
}
